import request from '@/utils/request'

// 查询腾讯云-用户行驶证主页列表
export function listTravellicense(query) {
  return request({
    url: '/tc/travellicense/list',
    method: 'get',
    params: query
  })
}

// 查询腾讯云-用户行驶证主页详细
export function getTravellicense(tlid) {
  return request({
    url: '/tc/travellicense/' + tlid,
    method: 'get'
  })
}

// 新增腾讯云-用户行驶证主页
export function addTravellicense(data) {
  return request({
    url: '/tc/travellicense',
    method: 'post',
    data: data
  })
}

// 修改腾讯云-用户行驶证主页
export function updateTravellicense(data) {
  return request({
    url: '/tc/travellicense',
    method: 'put',
    data: data
  })
}

// 删除腾讯云-用户行驶证主页
export function delTravellicense(tlid) {
  return request({
    url: '/tc/travellicense/' + tlid,
    method: 'delete'
  })
}

// 导出腾讯云-用户行驶证主页
export function exportTravellicense(query) {
  return request({
    url: '/tc/travellicense/export',
    method: 'get',
    params: query
  })
}